<template>
    <div class="crumb">
        <!-- {{nav[0].name}} /  {{nav[1].name}} -->
        <span v-for="item,index in nav" :key="index">
            <span :style="{fontWeight: index==0?700:400}">{{item.name}}</span>
            <i v-show="index!=nav.length-1">/</i>
        </span>
        
    </div>
</template>

<script>
export default {
    props:["nav"],
    data () {
        return {

 
        }
    }
}
</script>
 
<style lang = "less" scoped>
    .crumb{
        margin-bottom: 20px;
        i{
            margin: 0 10px;
        }
    }
</style>